package com.hospital.register.dto.core.api;

import com.hospital.register.dto.base.ApiBaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotBlank;

@Data
@ToString
@ApiModel(description = "保存科室的参数")
public class DepartmentSaveDto extends ApiBaseDto {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "科室编号")
    @NotBlank(message = "科室编号不可为空")
    private String depcode;

    @ApiModelProperty(value = "科室名称")
    @NotBlank(message = "科室名称不可为空")
    private String depname;

    @ApiModelProperty(value = "科室描述")
    @NotBlank(message = "科室描述不可为空")
    private String intro;

    @ApiModelProperty(value = "大科室编号")
    @NotBlank(message = "大科室编号不可为空")
    private String bigcode;

    @ApiModelProperty(value = "大科室名称")
    @NotBlank(message = "大科室名称不可为空")
    private String bigname;

}

